package com.car.loan.project.xr.util.vo;

import com.car.loan.project.xr.domain.LoanAlbum;
import com.car.loan.project.xr.util.bo.business.CustomerAddBo;
import com.car.loan.project.xr.util.bo.business.LoanAlbumBo;
import com.car.loan.project.xr.util.vo.LoanDetailVo.LoanBaseInfoVo;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
import lombok.Data;

/**
 * @author huangding
 * @description
 * @date 2019/11/14 17:08
 */
@Data
public class LoanDeleteVo {

    @ApiModelProperty("基本数据")
    private LoanBaseInfoVo loanBaseInfo;

    @ApiModelProperty(value = "用户信息", required = true)
    private CustomerAddBo customerInfo;

    @ApiModelProperty("业务信息")
    private BusinessInfoVo businessInfo;

    @ApiModelProperty("其他信息")
    private OtherInfo otherInfo;

    @ApiModelProperty("附件信息,map类型，key等于附件类型")
    private Map<Integer, List<LoanAlbumBo>> loanAlbumMap;


    @Data
    public static class OtherInfo {

        @ApiModelProperty("删除时间")
        private LocalDateTime deletedTime;

        @ApiModelProperty("删除人员")
        private String deletedName;

        @ApiModelProperty("业务建议")
        private String businessSuggest;

        @ApiModelProperty("业务详情")
        private String remark;

        @ApiModelProperty("审批意见，用于提示,提交忽略")
        private String auditRemark;

        @ApiModelProperty("加签意见")
        private String secondAuditRemark;


    }

    @Data
    public static class BusinessInfoVo {

        @ApiModelProperty("车系型号")
        private String carName;

        @ApiModelProperty("融资银行")
        private String bankName;

        @ApiModelProperty(value = "车辆类型")
        private String carType;

        @ApiModelProperty(value = "车辆性质")
        private Integer carNature;

        @ApiModelProperty("车牌类型公牌/私牌")
        private String plateType;

        @ApiModelProperty("上牌省")
        private String registProvince;

        @ApiModelProperty("上牌市")
        private String registCity;

        @ApiModelProperty(value = "分期金额，单位元", required = true)
        private Double installmentAmount;

        @ApiModelProperty(value = "合同车价", required = true)
        private Double sellAmount;


        @ApiModelProperty(value = "执行费率，百分比", required = true)
        private Double rate;

        @ApiModelProperty(value = "期数", required = true)
        private Long term;

    }


}
